package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name = "PRAXIS_SCANS")
public class ScanTBL implements Serializable
{

    /**
	 * 
	 */
    private static final long serialVersionUID = 8842052563657542420L;

    @Column(name = "ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Temporal(javax.persistence.TemporalType.DATE)
    private Calendar datum;

    @Column(name = "DATEI_NAME")
    private String dateiName;

    @Column(name = "URL")
    private String speicherOrt;

    private int typ;

    private String bezeichner;

    @ManyToOne
    @JoinColumn(name = "patientin_matricule_nummer", nullable = false)
    private CustomerTBL customer;

    public ScanTBL()
    {
	// TODO Auto-generated constructor stub
    }

    public CustomerTBL getCustomer()
    {
	return customer;
    }

    public void setCustomer(CustomerTBL customer)
    {
	this.customer = customer;
    }

    public Long getId()
    {
	return id;
    }

    public void setId(Long id)
    {
	this.id = id;
    }

    public Calendar getDatum()
    {
	return datum;
    }

    public void setDatum(Calendar datum)
    {
	this.datum = datum;
    }

    public String getDateiName()
    {
	return dateiName;
    }

    public void setDateiName(String dateiName)
    {
	this.dateiName = dateiName;
    }

    public String getSpeicherOrt()
    {
	return speicherOrt;
    }

    public void setSpeicherOrt(String speicherOrt)
    {
	this.speicherOrt = speicherOrt;
    }

    public int getTyp()
    {
	return typ;
    }

    public void setTyp(int typ)
    {
	this.typ = typ;
    }

    public String getBezeichner()
    {
	return bezeichner;
    }

    public void setBezeichner(String bezeichner)
    {
	this.bezeichner = bezeichner;
    }

    public static long getSerialVersionUID()
    {
	return serialVersionUID;
    }

}
